package com.aznest.service;

import com.aznest.dto.OrdersDTO;
import com.aznest.entity.Orders;
import com.aznest.vo.OrdersVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface OrdersService {
    String add(OrdersDTO orders);

    void deleteById(Integer id);

    void deleteBatch(List<Integer> ids);

    void updateById(Orders orders);

    Orders selectById(Integer id);

    List<OrdersVO> selectByUserId(Integer id);

    List<OrdersVO> selectAll(Orders orders);

    PageInfo<OrdersVO> selectPage(Orders orders, Integer pageNum, Integer pageSize);

    List<OrdersVO> selectByCheckingAndHotelId(Integer id);

    void paid(String orderId);

    void cancel(String orderId);

    Orders selectByHotelId(String orderId);
}
